package org.anjoy.ktv.util;

import org.anjoy.ktv.R;

import android.app.Dialog;
import android.content.Context;
import android.os.Bundle;
import android.view.View;
import android.widget.Button;
import android.widget.Toast;

public class KtvAlterDialog extends Dialog {

	private Button positveBtn;
	private Button canceBtn;

	public Context mContext;

	public KtvAlterDialog(Context context) {
		super(context);
		this.mContext = context;
	}

	public KtvAlterDialog(Context context, int theme) {
		super(context, theme);
		this.mContext = context;
	}

	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		this.setContentView(R.layout.ktv_dialog_alter_style);
		positveBtn = (Button) findViewById(R.id.dialog_button_ok);
		canceBtn = (Button) findViewById(R.id.dialog_button_cance);

		positveBtn.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Toast.makeText(mContext, "OK....", Toast.LENGTH_SHORT).show();
				cancel();
			}
		});

		canceBtn.setOnClickListener(new View.OnClickListener() {

			@Override
			public void onClick(View v) {
				Toast.makeText(mContext, "Cance", Toast.LENGTH_SHORT).show();
				cancel();
			}
		});
	}
}
